Helper to configure a CheckBoxEditor widget for a specific property of the model.
public CheckBoxEditorWrapper CheckBoxEditorFor<>(
System.Linq.Expressions.Expression<Func<TModel,TProperty>> ,
System.Collections.Generic.IDictionary<string,object>
)
'Declaration
Public Overloads Function CheckBoxEditorFor(Of )( _
ByVal As System.Linq.Expressions.Expression(Of Func(Of TModel,TProperty)), _
ByVal As System.Collections.Generic.IDictionary(Of String,Object) _
) As CheckBoxEditorWrapper
Parameters
- expression
- The expression for a property of the model.
- htmlAttributes
- Dictionary HTML attributes to set for the element.
Type Parameters
- TProperty
- The type of the property.
Return Value
New instance of CheckBoxEditorWrapper
Target Platforms: Windows 8.1, Windows 8.1, Windows 8, Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2